package cn.ainit.sys.print;

import cn.ainit.sys.dz.entity.SysDzSource;
import cn.ainit.sys.print.entity.SysPrint;

import javax.servlet.http.HttpServletRequest;
import java.util.List;
import java.util.Map;

public interface PrintService {
	public List loadColumnsU(String dsId, String type, String flag, String uid)throws Exception;
	
	public SysDzSource getSysDzSource(String dzId) throws Exception;
	
	public String getShowNameVal(String sql) throws Exception ;
	
	public Object gePrintDataBySql(String sql,String pkVal)throws Exception;
	
	public SysPrint getPrintObj(String dsId,String name)throws Exception;
	
	public List getPrintMList(String sql,String pkVal,String config);
	
	/**
	 * 根据明明细的sql语句得到明明细的列表
	 */
	public List<Map<String,Object>> getPrintMMList(String sql);
	/**
	 * 请求查询的数据
	 * @param zSql
	 * @return
	 * @throws Exception
	 * @author Xuzq
	 * @date 2014-9-1 上午09:41:14
	 */
	public List getPrintQueryData(String zSql)throws Exception;
	/**
	 * 获取公司信息
	 * @return
	 * @throws Exception
	 */
	public Map<String, Object> getCompanyInfo()throws Exception;
	
	/**
	 * 获取sys_cl的列
	 */
	public List getsyscl(String dsid);
    /**
     * 记录打印次数
     */
    Boolean countUpdate(HttpServletRequest request);
}
